<template>
  <el-form ref="searchForm" :model="searchForm" label-width="120px" >
    <el-row  :gutter="10">
      <el-col :lg="6" :sm="8">
        <el-form-item label="角色ID">
          <el-input v-model="searchForm.roleId"></el-input>
        </el-form-item>
      </el-col>
      <el-col :lg="6" :sm="8">
        <el-form-item label="角色名称" >
          <el-input v-model="searchForm.roleName"></el-input>
        </el-form-item>
      </el-col>
      <el-col :lg="6" :sm="8">
        <el-button id="seaBtn" shape="circle" icon="md-search" @click="onSearch" type="primary">查询</el-button>
        <el-button id="resBtn" class="mainBtn" shape="circle" icon="md-sync" @click="onReset">重置</el-button>
      </el-col>
    </el-row>

  </el-form>
</template>
<script>
  export default {
    data () {
      return {
        searchForm: {
          roleId:'',
          roleName: '',
        }
      }
    },
    methods: {
      onSearch () {
        this.$emit('on-search', this.searchForm)
      },
      onReset () {
          this.searchForm.roleId=''
          this.searchForm.roleName= ''
      },

    },
    mounted () {

    }
  }
</script>

<style scoped>
</style>
